using System.Collections.Generic;

namespace MyApp.WebApi.Entity
{
    public class Users : BaseModel
    {

        public int ShoppingsId { get; set; }

        public string Username { get; set; }

        public string Password { get; set; }

        public bool IsManagement { get; set; }

        public bool IsMerchant { get; set; }

        //自动构建对应表的主外键关系

        public virtual Shoppings Shopping { get; set; }
        public virtual IEnumerable<UsersInfos> UsersInfos { get; set; }
        public virtual IEnumerable<UsersOrders> UsersOrders { get; set; }
        public virtual IEnumerable<UsersGoods> UsersGoods { get; set; }


    }
}
